package com.d3.sx_eprotection.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("supervisor")
public class Supervisor {
    @TableId(value = "phoneNumber")
    private String phoneNumber;
    private String name;
    private int age;
    private String birthday;
    private int sex;

    public Supervisor() {
    }

    public Supervisor(Supervisor supervisor) {
        this.phoneNumber = supervisor.getPhoneNumber();
        this.name = supervisor.getName();
        this.age = supervisor.getAge();
        this.birthday = supervisor.getBirthday();
        this.sex = supervisor.getSex();
        this.password = supervisor.getPassword();
    }

    private String password;

}
